function T = dynamic_g4_tt(T, y, x, params, steady_state, it_)
% function T = dynamic_g4_tt(T, y, x, params, steady_state, it_)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T             [#temp variables by 1]     double  vector of temporary terms to be filled by function
%   y             [#dynamic variables by 1]  double  vector of endogenous variables in the order stored
%                                                    in M_.lead_lag_incidence; see the Manual
%   x             [nperiods by M_.exo_nbr]   double  matrix of exogenous variables (in declaration order)
%                                                    for all simulation periods
%   steady_state  [M_.endo_nbr by 1]         double  vector of steady state values
%   params        [M_.param_nbr by 1]        double  vector of parameter values in declaration order
%   it_           scalar                     double  time period for exogenous variables for which
%                                                    to evaluate the model
%
% Output:
%   T           [#temp variables by 1]       double  vector of temporary terms
%

assert(length(T) >= 443);

T = bbeffectivedemandmatchirf_order4.dynamic_g3_tt(T, y, x, params, steady_state, it_);

T(388) = getPowerDeriv(y(30)*y(4),params(1),4);
T(389) = getPowerDeriv(y(36)*y(21),1-params(1),4);
T(390) = T(41)*T(90)*T(193)+T(89)*(T(89)*T(90)+T(41)*T(41)*T(194));
T(391) = getPowerDeriv(y(10)*T(4)*T(5),T(6),4);
T(392) = getPowerDeriv(T(8),T(9),4);
T(393) = T(41)*T(90)*T(195)+T(89)*(T(90)*T(91)+T(41)*T(53)*T(194));
T(394) = T(41)*T(90)*T(196)+T(89)*(T(90)*T(93)+T(41)*T(197));
T(395) = T(100)*T(194)+params(24)*T(40)*y(10)*T(4)*T(74)*params(24)*T(40)*y(10)*T(4)*T(74)*T(392);
T(396) = T(5)*y(10)*T(95)*T(5)*y(10)*T(52)*T(192)+T(88)*T(5)*y(10)*T(206)+T(5)*y(10)*T(95)*T(5)*y(10)*T(52)*T(192)+T(5)*y(10)*T(52)*(T(5)*y(10)*T(95)*T(192)+T(5)*y(10)*T(52)*T(5)*y(10)*T(52)*T(391));
T(397) = T(5)*y(10)*T(95)*y(10)*T(4)*T(74)*T(192)+T(88)*T(74)*y(10)*T(95)+y(10)*T(52)*T(74)*T(5)*y(10)*T(52)*T(192)+T(5)*y(10)*T(52)*(y(10)*T(52)*T(74)*T(192)+T(5)*y(10)*T(52)*y(10)*T(4)*T(74)*T(391));
T(398) = y(10)*T(52)*T(74)*y(10)*T(4)*T(74)*T(192)+T(88)*y(10)*T(52)*T(99)+y(10)*T(52)*T(74)*y(10)*T(4)*T(74)*T(192)+T(5)*y(10)*T(52)*(y(10)*T(4)*T(99)*T(192)+y(10)*T(4)*T(74)*y(10)*T(4)*T(74)*T(391));
T(399) = y(10)*T(4)*T(99)*y(10)*T(4)*T(74)*T(192)+T(88)*y(10)*T(4)*T(211)+y(10)*T(4)*T(99)*y(10)*T(4)*T(74)*T(192)+y(10)*T(4)*T(74)*(y(10)*T(4)*T(99)*T(192)+y(10)*T(4)*T(74)*y(10)*T(4)*T(74)*T(391));
T(400) = T(100)*T(197)+T(90)*T(212)+T(100)*T(197)+params(24)*T(40)*y(10)*T(4)*T(74)*T(395);
T(401) = getPowerDeriv(y(11),params(6),4);
T(402) = getPowerDeriv(1-y(21),1-params(6),4);
T(403) = (-((T(215)*(T(213)*(-(2*(-((y(35)+params(15))*params(1)))))-(T(213)*(-(2*(-((y(35)+params(15))*params(1)))))+(-((-((y(35)+params(15))*params(1)))*(y(20)+y(20))))*((y(20)+y(20))*(y(20)+y(20))+2*y(20)*y(20)+(y(20)+y(20))*(y(20)+y(20))+2*y(20)*y(20))))-(y(20)*y(20)*y(20)*y(20)*(-(2*(-((y(35)+params(15))*params(1)))))-(-((-((y(35)+params(15))*params(1)))*(y(20)+y(20))))*T(213))*(y(20)*y(20)*y(20)*y(20)*T(213)+y(20)*y(20)*y(20)*y(20)*T(213)))/(T(215)*T(215))));
T(404) = (-((y(20)*y(20)*y(20)*y(20)*(-(2*(-params(1))))-T(213)*(-((y(20)+y(20))*(-params(1)))))/T(215)));
T(405) = (2*y(4)*y(4)*y(4)*y(4)-(y(4)+y(4))*(y(4)*y(4)*(y(4)+y(4))+y(4)*y(4)*(y(4)+y(4))))/(y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4));
T(406) = (y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*((-(2*(-y(18))))*(y(4)*y(4)*(y(4)+y(4))+y(4)*y(4)*(y(4)+y(4)))-((-(2*(-y(18))))*(y(4)*y(4)*(y(4)+y(4))+y(4)*y(4)*(y(4)+y(4)))+(-((-y(18))*(y(4)+y(4))))*((y(4)+y(4))*(y(4)+y(4))+2*y(4)*y(4)+(y(4)+y(4))*(y(4)+y(4))+2*y(4)*y(4))))-(y(4)*y(4)*y(4)*y(4)*(-(2*(-y(18))))-(-((-y(18))*(y(4)+y(4))))*(y(4)*y(4)*(y(4)+y(4))+y(4)*y(4)*(y(4)+y(4))))*(y(4)*y(4)*y(4)*y(4)*(y(4)*y(4)*(y(4)+y(4))+y(4)*y(4)*(y(4)+y(4)))+y(4)*y(4)*y(4)*y(4)*(y(4)*y(4)*(y(4)+y(4))+y(4)*y(4)*(y(4)+y(4)))))/(y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4)*y(4));
T(407) = getPowerDeriv(T(18),T(6),4);
T(408) = T(38)*T(107)*T(230)+T(106)*(T(107)*T(112)+T(38)*T(49)*T(224));
T(409) = T(38)*T(107)*T(232)+T(106)*(T(107)*T(115)+T(38)*T(54)*T(224));
T(410) = T(38)*T(107)*T(234)+T(106)*(T(107)*T(118)+T(38)*T(72)*T(224));
T(411) = T(38)*T(107)*T(236)+T(106)*(T(107)*T(120)+T(38)*T(75)*T(224));
T(412) = T(124)*T(54)*T(224)+T(107)*T(288)+T(124)*T(54)*T(224)+T(45)*(T(143)*T(224)+T(54)*T(54)*T(407));
T(413) = T(124)*T(75)*T(224)+T(107)*T(293)+T(127)*T(54)*T(224)+T(45)*(T(149)*T(224)+T(54)*T(75)*T(407));
T(414) = T(127)*T(75)*T(224)+T(107)*T(297)+T(127)*T(75)*T(224)+T(45)*(T(161)*T(224)+T(75)*T(75)*T(407));
T(415) = T(50)*T(252);
T(416) = params(2)*(T(39)*T(112)+T(38)*T(113))*T(136)+T(50)*T(256);
T(417) = T(134)*T(54)*T(224)+T(107)*T(313)+T(134)*T(54)*T(224)+T(49)*(T(143)*T(224)+T(54)*T(54)*T(407));
T(418) = T(134)*T(75)*T(224)+T(107)*T(319)+T(141)*T(54)*T(224)+T(49)*(T(149)*T(224)+T(54)*T(75)*T(407));
T(419) = T(141)*T(75)*T(224)+T(107)*T(326)+T(141)*T(75)*T(224)+T(49)*(T(161)*T(224)+T(75)*T(75)*T(407));
T(420) = T(143)*T(54)*T(224)+T(107)*T(328)+T(143)*T(54)*T(224)+T(54)*(T(143)*T(224)+T(54)*T(54)*T(407));
T(421) = T(143)*T(72)*T(224)+T(107)*T(332)+T(147)*T(54)*T(224)+T(54)*(T(147)*T(224)+T(54)*T(72)*T(407));
T(422) = T(143)*T(75)*T(224)+T(107)*T(334)+T(149)*T(54)*T(224)+T(54)*(T(149)*T(224)+T(54)*T(75)*T(407));
T(423) = T(147)*T(72)*T(224)+T(107)*T(336)+T(147)*T(72)*T(224)+T(54)*(T(158)*T(224)+T(72)*T(72)*T(407));
T(424) = T(147)*T(75)*T(224)+T(107)*T(338)+T(149)*T(72)*T(224)+T(54)*(T(159)*T(224)+T(72)*T(75)*T(407));
T(425) = T(149)*T(75)*T(224)+T(107)*T(340)+T(149)*T(75)*T(224)+T(54)*(T(161)*T(224)+T(75)*T(75)*T(407));
T(426) = T(158)*T(72)*T(224)+T(107)*T(353)+T(158)*T(72)*T(224)+T(72)*(T(158)*T(224)+T(72)*T(72)*T(407));
T(427) = T(158)*T(75)*T(224)+T(107)*T(354)+T(159)*T(72)*T(224)+T(72)*(T(159)*T(224)+T(72)*T(75)*T(407));
T(428) = T(159)*T(75)*T(224)+T(107)*T(355)+T(159)*T(75)*T(224)+T(72)*(T(161)*T(224)+T(75)*T(75)*T(407));
T(429) = T(161)*T(75)*T(224)+T(107)*T(12)*T(4)*T(211)/T(17)+T(161)*T(75)*T(224)+T(75)*(T(161)*T(224)+T(75)*T(75)*T(407));
T(430) = T(50)*T(281);
T(431) = params(2)*(T(45)*T(113)+T(39)*T(122))*T(136)+T(50)*params(2)*(T(113)*T(124)+T(45)*T(255)+T(116)*T(122)+T(39)*T(282));
T(432) = params(2)*(T(49)*T(113)+T(39)*T(132))*T(136)+T(50)*params(2)*(T(113)*T(134)+T(49)*T(255)+T(116)*T(132)+T(39)*T(305));
T(433) = getPowerDeriv(T(22),1-T(7),4);
T(434) = T(58)*T(152)*T(345)+T(151)*(T(152)*T(154)+T(58)*T(79)*T(343));
T(435) = T(164)*T(79)*T(343)+T(152)*T(358)/y(3)+T(164)*T(79)*T(343)+T(79)*(T(164)*T(343)+T(79)*T(79)*T(433));
T(436) = (-((y(22)*y(22)*y(22)*y(22)*(-(2*(-y(44))))-(-((-y(44))*(y(22)+y(22))))*T(361))/T(363)));
T(437) = T(167)*T(169)+T(81)*T(367);
T(438) = T(26)*T(26)*(T(26)*T(82)+T(26)*T(82))+T(26)*T(26)*(T(26)*T(82)+T(26)*T(82));
T(439) = (2*y(19)*y(19)*y(19)*y(19)-(y(19)+y(19))*(y(19)*y(19)*(y(19)+y(19))+y(19)*y(19)*(y(19)+y(19))))/(y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19));
T(440) = (y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*((-(2*(-y(39))))*(y(19)*y(19)*(y(19)+y(19))+y(19)*y(19)*(y(19)+y(19)))-((-(2*(-y(39))))*(y(19)*y(19)*(y(19)+y(19))+y(19)*y(19)*(y(19)+y(19)))+(-((-y(39))*(y(19)+y(19))))*((y(19)+y(19))*(y(19)+y(19))+2*y(19)*y(19)+(y(19)+y(19))*(y(19)+y(19))+2*y(19)*y(19))))-(y(19)*y(19)*y(19)*y(19)*(-(2*(-y(39))))-(-((-y(39))*(y(19)+y(19))))*(y(19)*y(19)*(y(19)+y(19))+y(19)*y(19)*(y(19)+y(19))))*(y(19)*y(19)*y(19)*y(19)*(y(19)*y(19)*(y(19)+y(19))+y(19)*y(19)*(y(19)+y(19)))+y(19)*y(19)*y(19)*y(19)*(y(19)*y(19)*(y(19)+y(19))+y(19)*y(19)*(y(19)+y(19)))))/(y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19)*y(19));
T(441) = (-((T(35)*T(35)*(-4)-(T(35)*2*y(22)+T(35)*2*y(22))*(-(2*2*y(22))))/(T(35)*T(35)*T(35)*T(35))));
T(442) = (-((T(35)*T(35)*T(35)*T(35)*((T(35)*2*y(22)+T(35)*2*y(22))*(-(2*2*(y(37)+y(40))))-((T(35)*2*y(22)+T(35)*2*y(22))*(-(2*2*(y(37)+y(40))))+(-(2*(y(37)+y(40))*2*y(22)))*T(385)))-(T(35)*T(35)*(-(2*2*(y(37)+y(40))))-(-(2*(y(37)+y(40))*2*y(22)))*(T(35)*2*y(22)+T(35)*2*y(22)))*T(387))/(T(35)*T(35)*T(35)*T(35)*T(35)*T(35)*T(35)*T(35))));
T(443) = (-(2*T(34)))*T(385);

end
